﻿//微信API 路由
var routes = [
	// menu模块
	{
		name: 'menu',
		method: 'get',
		url: '/api/wechat/mp/menu',
		controller: require('../mp/api/menuController').query
	},
	{
		name: 'menu',
		method: 'post',
		url: '/api/wechat/mp/menu',
		controller: require('../mp/api/menuController').create
	},
	{
		name: 'menu',
		method: 'delete',
		url: '/api/wechat/mp/menu',
		controller: require('../mp/api/menuController').remove
	},
	//common模块
	{
		name: 'accesstoken',
		method: 'get',
		url: '/api/wechat/mp/common/accesstoken',
		controller: require('../mp/api/commonController').lastAccessToken
	}
];

module.exports = routes;